package com.zhengqing.system.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ManualBrandEnums {

    YAMAHA(1L,"yamaha"),
    SUZUKI(2L,"suzuki"),
    KAWASAKI(3L,"kawasaki"),
    HONDA(4L,"honda"),
    BMW(5L,"bmw"),
    TRIUMPH(6L,"triumph");

    private Long code;

    private String Desc;

    public static String getDesc(Long code){
        for (ManualBrandEnums value : ManualBrandEnums.values()) {
            if (value.getCode() == code){
                return value.getDesc();
            }
        }
        return "";
    }
}
